<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Add New Book</title>
  <!-- Custom CSS -->
  <style>
    h1 {
      color: #2c3e50;
      font-weight: 600;
      border-bottom: 2px solid #3498db;
      padding-bottom: 0.5rem;
      margin-bottom: 1.5rem;
    }
  </style>
</head>
<body>
  <div>
    <h1>📚 图书管理系统：新增</h1>
    
    <form action="/books" method="POST">
      <div>
        <label for="name">书名</label>
        <input type="text" id="name" name="name" required value="<%= book.name %>">
      </div>
      
      <div>
        <label for="author">作者</label>
        <input type="text" id="author" name="author" required value="<%= book.author %>">
      </div>
      
      <div>
        <label for="press">出版社</label>
        <input type="text" id="press" name="press" value="<%= book.press %>">
      </div>
      
      <div>
        <label for="description">价格</label>
        <input type="number" id="price" name="price" value="<%= book.price %>">
      </div>
      
      <button type="submit">保存</button>
      <a href="/books">取消</a>
    </form>
  </div>
</body>
</html>
